﻿@using BonjourQuotation.UI.Models.BaseModel;
@model UserAllPermissionsViewModel
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @*@Styles.Render("~/Content/Site.css")*@ 
    @Styles.Render("~/Content/custom.css")
    @Styles.Render("~/Content/bootstrap.css")
    @Styles.Render("~/Content/colorbox.css")
    @Styles.Render("~/Content/jquery.alerts.css")
    @Styles.Render("~/Content/jquery-ui.css")
    @Styles.Render("~/Content/jquery-ui-timepicker-addon.css")
    @Scripts.Render("~/Scripts/jquery-2.0.3.js")
    @Scripts.Render("~/Scripts/jquery.validate-vsdoc.js")
    @Scripts.Render("~/Scripts/jquery.maskedinput.js")
    @Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.js")
    @Scripts.Render("~/Scripts/bootstrap.js")
    @Scripts.Render("~/Scripts/colorbox/jquery.colorbox-min.js")
    @Scripts.Render("~/Scripts/Alerts/jquery.alerts.js")
    @Scripts.Render("~/Scripts/calendar/jquery-ui.js")
    @Scripts.Render("~/Scripts/UIScript/Main.js")
    @Scripts.Render("~/Scripts/UIScript/UrlDictionary.js")
    @Scripts.Render("~/Scripts/UIScript/MessagesDictionary.js")
    @Scripts.Render("~/Scripts/jquery-ui-timepicker-addon.js")
</head>
<body>
    <div id="MainDivStyle">
        @if (Request.IsAuthenticated)
        {
            if(Model.MenuView)
            { 
            <div id="mainmenubar">
                <div id="TopLeftLogo"></div>
                <div id="cssmenu">
                    <ul>
                        @if(Model.MenuManageView)
                        { 
                        <li class='has-sub'>
                            <a href="#">
                                <div class="manageimg"></div>
                                <div id="ManageSpan">
                                    <div class="MenuMenusText" id="ManageSpanText">Manage</div>
                                </div>
                            </a>
                            <ul>
                                @if(Model.MenuManageCreateUserView)
                                { 
                                <li id="createuserimguser" style="margin-top: 10px;">
                                    <a href="/Account/CreateUser">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Create User</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuManageCustomerView)
                                { 
                                <li id="createuserimgcustomer">
                                    <a href="/Customer/ManageCustomers">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Customer</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuManageSeasonView)
                                { 
                                <li class="seasonimg">
                                    <a href="/Season/ManageSeasons">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Season</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuManageGuideView)
                                { 
                                <li class="guideimg">
                                    <a href="/Guide/ManageGuides">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                             <span class="MenuSubMenusText">Guide</span>
                                         </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuManageEmployeeView)
                                { 
                                <li class="employeeimg">
                                    <a href="/Account/ManageUsers">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Employee</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuManageVendorView)
                                { 
                                <li class="vendorimg">
                                    <a href="/Vendor/ManageVendors">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Vendor</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuManagePreferredView)
                                { 
                                <li class="preferredimg">
                                    <a href="/PreferredVendor/ManagePreferredVendors">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Preferred</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if (Model.MenuManageQuotationView)
                                {
                                    <li id="createuserimgcompany" style="margin-top: 6px">
                                        <a href="/Setup/SetupManageQuotation">
                                            <div class="FirstSubMenu secondmenuitemsubmenu">
                                                <span class="MenuSubMenusText">Quotation</span>
                                            </div>
                                        </a>
                                    </li>
                                }
                                @if (Model.MenuManageQuotationGroupsView)
                                {
                                    <li id="createuserimgcompany" style="margin-top: 6px">
                                        <a href="/Setup/SetupManageQuotationGroup">
                                            <div class="FirstSubMenu secondmenuitemsubmenu">
                                                <span class="MenuSubMenusText">Quotation Groups</span>
                                            </div>
                                        </a>
                                    </li>
                                }
                                @if (Model.MenuManageOptionalView)
                                {
                                    <li id="createuserimgcompany" style="margin-top: 6px">
                                        <a href="/Optional/ManageOptionals">
                                            <div class="FirstSubMenu secondmenuitemsubmenu">
                                                <span class="MenuSubMenusText">Optional</span>
                                            </div>
                                        </a>
                                    </li>
                                }
                            </ul>
                        </li>
                        }
                        @if(Model.MenuSetupView)
                        { 
                        <li class='has-sub'>
                            <a href="#">
                                <div class="setupimg"></div>
                                <div id="SetupSpan">
                                    <div class="MenuMenusText" id="SetupSpanText">Setup</div>
                                </div>
                            </a>
                            <ul>
                                @if(Model.MenuSetupCompanyView)
                                { 
                                <li id="createuserimgcompany" style="margin-top: 6px" >
                                    <a href="/Setup/SetupCompany">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Company</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupBankView)
                                { 
                                <li id="createuserimgbank">
                                    <a href="/Setup/SetupBank">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Bank</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupCreditCardView)
                                { 
                                <li id="createuserimgcreditcard">
                                    <a href="/Setup/SetupCard">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Credit Card</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupPayTypeView)
                                { 
                                <li id="createuserimgpaymenttype">
                                    <a href="/Setup/SetupPaymentType">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Pay. Type</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupServiceTypeView)
                                { 
                                <li id="createuserimgservicetype">
                                    <a href="/Setup/SetupServiceType">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Service Type</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupServiceView)
                                { 
                                <li id="createuserimgservice">
                                    <a href="/Setup/SetupService">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Service</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupVendorTypeView)
                                { 
                                <li id="createuserimgvendortype">
                                    <a href="/Setup/SetupVendorType">
                                        <div class="FirstSubMenu secondmenuitemsubmenu" style="height: 36px">
                                            <span class="MenuSubMenusText">Vendor Type</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupDetailTypeView)
                                { 
                                <li class="createuserimgdetail">
                                    <a href="/Setup/SetupDetailType">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Detail Type</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupDetailView)
                                { 
                                <li class="createuserimgdetail">
                                    <a href="/Setup/SetupDetail">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Detail</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupRegionView)
                                { 
                                <li id="createuserimgregion">
                                    <a href="/Setup/SetupRegion">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Region</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupAreaView)
                                { 
                                <li id="createuserimgarea">
                                    <a href="/Setup/SetupArea">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Area</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupStateView)
                                { 
                                <li id="createuserimgstate">
                                    <a href="/Setup/SetupState">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">State</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupCountryView)
                                { 
                                <li id="createuserimgcountry">
                                    <a href="/Setup/SetupCountry">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Country</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupQRegionView)
                                { 
                                <li id="createuserimgquota">
                                    <a href="/Setup/SetupQuotaRegion">
                                        <div class="FirstSubMenu secondmenuitemsubmenu" style="height: 35px">
                                            <span class="MenuSubMenusText">Quota Region</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupTechDetailView)
                                { 
                                <li id="createuserimgcity">
                                    <a href="/Setup/SetupTechType">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">Tech Detail</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuSetupCityView)
                                { 
                                <li id="createuserimgcity">
                                    <a href="/Setup/SetupCity">
                                        <div class="FirstSubMenu secondmenuitemsubmenu">
                                            <span class="MenuSubMenusText">City</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if (Model.MenuSetupVendorConfirmStatusView)
                                {
                                    <li class="createuserimg2">
                                        <a href="/Setup/SetupVConfStatus">
                                            <div class="FirstSubMenu thirdsubmenus" style="height: 50px">
                                                <span class="MenuSubMenusText">Vendor Confirm Status</span>
                                            </div>
                                        </a>
                                    </li>
                                }
                                @if (Model.MenuSetupSpecialDatesView)
                                {
                                    <li class="createuserimg2">
                                        <a href="/Setup/SetupSpecialDates">
                                            <div class="FirstSubMenu secondmenuitemsubmenu">
                                                <span class="MenuSubMenusText">Special Dates</span>
                                            </div>
                                        </a>
                                    </li>
                                }
                            </ul>
                        </li>
                        }
                        @if(Model.MenuReportView)
                        { 
                            if(Model.MenuCustomerReportView)
                            { 
                        <li class='has-sub'>
                            <a href="#">
                                <div class="reportimg2"></div>
                                <div id="reportspan2">
                                    <div class="MenuMenusText SetupSpanText" style="font-size: 21px; text-align: center">Customer Report</div>
                                </div>
                            </a>
                            <ul>
                              <!--  @*
                                <li class="top_sub_menu_li">
                                    <a class="top_sub_menu" href="/Report/FrmHotelContractsReport">Hotel Contracts</a>
                                </li>
                                *@
                                @*
                                <li class="top_sub_menu_li">
                                    <a class="top_sub_menu" href="/Report/FrmRestaurantContractsReport">Restaurant Contracts</a>
                                </li>
                                *@-->
                                <!--Third Menu item first sub menu-->
                                @if(Model.MenuReportCustomerARDaysView)
                                { 
                                <li class="createuserimg2" style="margin-top: 20px">
                                    <a href="/Report/FrmCustomerARDaysReport">
                                        <div class="FirstSubMenu" style= "margin-top: -18px">
                                            <span class="MenuSubMenusText">Customer A/R Days</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuReportCustomerInvSumView)
                                { 
                                <li class="createuserimg2">
                                    <a href="/Report/FrmCustomerInvoiceReport">
                                        <div class="FirstSubMenu">
                                            <span class="MenuSubMenusText" style="position: absolute; margin-top: -8px">Customer Invoice Summary</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuReportCustomerPaymentView)
                                { 
                                <li class="createuserimg2">
                                    <a href="/Report/FrmCustomerPaymentReport">
                                        <div class="FirstSubMenu">
                                            <span class="MenuSubMenusText">Customer Payment</span>
                                        </div>
                                    </a>
                                </li>
                                }
                                @if(Model.MenuReportCustomerPayTypeView)
                                { 
                                <li class="createuserimg2">
                                    <a href="/Report/FrmCustomerPaymentTypeReport">
                                        <div class="FirstSubMenu">
                                            <span class="MenuSubMenusText" style="position: absolute; margin-top: -8px">Customer Payment Type</span>
                                        </div>
                                    </a>
                                </li>
                                }
                               <!-- @*
                                &lt;!&ndash;Third Menu item second sub menu&ndash;&gt;
                                <li class="top_sub_menu_li" style="margin-bottom: 10px">
                                    <a class="top_sub_menu" href="/Report/FrmCustomerLabelReport">Customer Label</a>
                                </li>
                                *@-->
                                @if(Model.MenuReportCustomerGroupView)
                                { 
                                <li class="createuserimg2">
                                    <a href="/Report/FrmCustomerGroupReport">
                                        <div class="FirstSubMenu thirdsubmenus" style="height: 35px">
                                            <span class="MenuSubMenusText">Customer-Group</span>
                                        </div>
                                    </a>
                                </li>
                                }
                            </ul>
                        </li>
                        }
     if(Model.MenuGroupReportView)
     { 
    <li class='has-sub'>
        <a href="#">
            <div class="reportimg"></div>
            <div id="ReportSpan">
                <div class="MenuMenusText ReportSpanText" style="font-size: 21px">Group Report</div>
            </div>
        </a>
        <ul>
            @if(Model.MenuReportVendorGroupView)
            { 
            <li class="createuserimg2" style="margin-top: 9px">
                <a href="/Report/FrmVendorGroupReport">
                    <div class="FirstSubMenu secondsubmenus" style="margin-top: -4px ">
                        <span class="MenuSubMenusText submenupositioning" style="margin-top: 0">Vendor-Group</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportGuideGroupView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmGuideGroupReport">
                    <div class="FirstSubMenu secondsubmenus">
                        <span class="MenuSubMenusText submenupositioning" style="margin-top: 5px;">Guide-Group</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportGuideListView)
            { 
            <li class="createuserimg2" style="margin-top: 5px">
                <a href="/Report/FrmGuideListReport">
                    <div class="FirstSubMenu secondsubmenus" style="height: 40px">
                        <span class="MenuSubMenusText submenupositioning">Guide List</span>
                    </div>
                </a>
            </li>
            }
            <!--  @*
              <li class="top_sub_menu_li">
                  <a class="top_sub_menu" href="/Report/FrmGuideAssignemntReport">Guide Assignemnt</a>
              </li>
              *@-->

            @if(Model.MenuReportGrpCityRoomDayView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmGroupCityRoomDayReport">
                    <div class="FirstSubMenu thirdsubmenus" style="height: 45px">
                        <span class="MenuSubMenusText">Group City Room-Day</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportCntCustGrpBalanceView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmCountryCustomerGroupBalanceReport">
                    <div class="FirstSubMenu thirdsubmenus">
                        <span class="MenuSubMenusText">Country-Customer Group Balance</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportCntCustGrpRevenueView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmCountryCustomerGroupRevenueReport">
                    <div class="FirstSubMenu thirdsubmenus">
                        <span class="MenuSubMenusText">Country-Customer Group Revenue</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportGroupGuideView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmGroupGuideReport">
                    <div class="FirstSubMenu thirdsubmenus" style="height: 35px">
                        <span class="MenuSubMenusText">Group-Guide</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportCustomerRefundView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmCustomerRefundReport">
                    <div class="FirstSubMenu" style="height: 50px">
                        <span class="MenuSubMenusText" style="position: absolute; margin-top: 3px">Customer Refund</span>
                    </div>
                </a>
            </li>
            }
            @if(Model.MenuReportGrpRegRoomDayView)
            { 
            <li class="createuserimg2">
                <a href="/Report/FrmGroupRegionRoomDayReport">
                    <div class="FirstSubMenu thirdsubmenus" style="height: 50px">
                        <span class="MenuSubMenusText">Group Region Room-Day</span>
                    </div>
                </a>
            </li>
            }
            @if (Model.MenuReportCustomerGroupView)
            {
                <li class="createuserimg2">
                    <a href="/Report/FrmGroupBreakDownReport">
                        <div class="FirstSubMenu thirdsubmenus" style="height: 50px">
                            <span class="MenuSubMenusText">Group BreakDown</span>
                        </div>
                    </a>
                </li>
            }
            
        </ul>
    </li>
     }
                        }
                    </ul>
                </div>
                <div class="Bj-footer">
                    © @DateTime.Now.Year BONJOUR USA
                </div>
            </div>
            }
        }
        <div id="navbarcontainer" class="container">
            <div class="MainPanel" role="navigation">
                <div class="container-fluid" style="margin-top: 4px;">
                    <div>
                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                            <span class="sr-only">Toggle navigation</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
                    </div>

                    <div style="width: 1200px; margin-left: -10px;">
                        <ul class="nav navbar-nav" style="width: 1200px; margin-left: -10px; margin-top: -10px;">
                            @if (Request.IsAuthenticated)
                            {
                            <li><div id="SliderShowHide"></div></li>
                            <li><a id="SideHeaderTabQuotation" href="/Quotation/Quotation"><div>Quotation</div></a></li>
                            <li><div id="divider"></div></li>
                            <li><a id="SideHeaderTabOperation" href="/Operation/Operation"><div>Operation</div></a></li>
                            
                            @*<li><a href="#"></a></li>
                            <li><a href="#"></a></li>*@
                            @*<li class="PageTitleli" ><a id="PageTitleHref" href="~/Home/Index"><div class="PageTitle"> Bonjour USA - Tools</div></a></li>*@
                            }
                            <ul class="nav navbar-nav navbar-right" style="margin-right:25px">
                                @if (Request.IsAuthenticated)
                                {
                                    <li>
                                        <div class="UserName">Welcome <strong>@User.Identity.Name</strong>!</div>
                                        <div id="UserImage"></div>
                                    </li>
                                    <li><a class="Logout" title="Logout" href="/Account/Logout"></a></li>
                                }
                                else
                                {
                                    <li class="login">
                                        <a id="logintext" title="Login" href="/Account/Login"></a>
                                    </li>
                                }
                            </ul>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
        @RenderBody()
    </div>
    
</body>
</html>
